package com.zhijian.warehouse.manage.service;

import com.zhijian.warehouse.manage.entity.po.OperationalReality;
import com.zhijian.warehouse.manage.entity.vo.request.OperationalRealitySearchVo;
import com.zhijian.warehouse.manage.entity.vo.request.OperationalRealitySaveOrUpdateVo;
import com.zhijian.warehouse.manage.entity.vo.response.OperationalRealityVo;
import com.zhijian.util.page.Page;

import java.util.List;

/**
 * 操作实况 业务处理层
 *
 * @author auto
 * @version 1.0
 * @date 2024-05-09 19:50:01
 */
public interface OperationalRealityService {

    /**
    * 主键查询
    *
    * @param id
    * @return
    */
    OperationalReality selectById(Long id);

    /**
    * 主键查询vo
    *
    * @param id
    * @return
    */
    OperationalRealityVo selectVoById(Long id);

    /**
    * 按照主键删除
    *
    * @param id
    */
    void deleteById(Long id);

    /**
    * 按照主键批量删除
    *
    * @param idList
    */
    void deleteByIdList(List<Long> idList);

    /**
    * 新增
    *
    * @param operationalReality
    * @return
    */
    Long insert(OperationalReality operationalReality);

    /**
    * 更改
    *
    * @param operationalReality
    * @return
    */
    boolean update(OperationalReality operationalReality);

    /**
    * 动态修改
    *
    * @param record
    * @return
    */
    boolean updateByPrimaryKeySelective(OperationalReality record);

    /**
    * 保存
    *
    * @param saveOrUpdateVo
    * @return
    */
    boolean save(OperationalRealitySaveOrUpdateVo saveOrUpdateVo);

    /**
    * 编辑
    *
    * @param saveOrUpdateVo
    * @return
    */
    boolean modify(OperationalRealitySaveOrUpdateVo saveOrUpdateVo);

    /**
    * 列表
    *
    * @param operationalRealitySearchVo
    * @return
    */
    OperationalRealityVo selectOne(OperationalRealitySearchVo operationalRealitySearchVo);

    /**
    * 总数
    *
    * @param operationalRealitySearchVo
    * @return
    */
    Integer count(OperationalRealitySearchVo operationalRealitySearchVo);

    /**
    * 列表
    *
    * @param operationalRealitySearchVo
    * @return
    */
    List<OperationalRealityVo> selectList(OperationalRealitySearchVo operationalRealitySearchVo);

    /**
    * 分页查询
    *
    * @param operationalRealitySearchVo
    * @return
    */
    Page<OperationalRealityVo> selectPage(OperationalRealitySearchVo operationalRealitySearchVo);

    /**
    * 批量新增数据（MyBatis原生foreach方法）
    *
    * @param entities 实例对象列表
    * @return 影响行数
    */
    boolean insertBatch(List<OperationalReality> entities);

    /**
    * 动态删除，慎重用此方法！！
    *
    * @param operationalRealitySearchVo
    * @return
    */
    void deleteByCondition(OperationalRealitySearchVo operationalRealitySearchVo);
}